package crp.core.analysis.app;

import crp.core.analysis.domain.commands.CreateViewFlowCommand;
import crp.core.analysis.domain.models.ViewFlowEntity;
import crp.core.analysis.domain.services.ViewFlowCreator;
import crp.core.analysis.domain.services.ViewFlowSearcher;
import crp.core.shared.events.EventTopics;
import io.vertx.mutiny.core.eventbus.EventBus;

import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;

@ApplicationScoped
public class ViewFlowService {
    private final ViewFlowCreator viewFlowCreator;
    private final ViewFlowSearcher searcher;

    @Inject
    public ViewFlowService(ViewFlowCreator viewFlowCreator,
                           ViewFlowSearcher searcher) {
        this.viewFlowCreator = viewFlowCreator;
        this.searcher = searcher;
    }

    public ViewFlowCreator creator(){
        return viewFlowCreator;
    }

    public ViewFlowSearcher searcher(){
        return searcher;
    }
}
